#!/bin/bash

# copy backend/ to 1-4 containers
for i in {1..4}; do
    echo "Copying backend/ to custom-dind-$i"
    docker cp backend/ "custom-dind-$i":/
    if [ $? -ne 0 ]; then
        echo "Failed to copy backend/ to custom-dind-$i"
    else
        echo "backend/ copied successfully to custom-dind-$i"
    fi
done